-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typeStorageを確実に参照するようにする #1230
base: master
Are you sure you want to change the base?
typeStorageを確実に参照するようにする #1230
Conversation
To make it easier to understand could you translate this to English and explain why do you need this change? Also, if it is possible please cover changes with the tests. |
From deepl: """ Tentatively solved the problem that xmlToObject for ltea does not convert array types as arrays. Not sure if that helps 🤷 but I was curious :) |
const typeName: string = type.name; | ||
if(typeName in typeStorage){// typeにtypeNameが入ってしまった場合の対応、本来はこのようなことが起きないように対処すべきかもしれない。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"// typeName in type, perhaps this should be handled to prevent this from happening in the first place."
const typeName: string = type.name; | ||
if(typeName in typeStorage){// typeにtypeNameが入ってしまった場合の対応、本来はこのようなことが起きないように対処すべきかもしれない。 | ||
if (this.$ref) { | ||
element = typeStorage[typeName]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably, need to check that typeStorage[typeName]
has a value, could be undefined, null ... anything
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a test. While code makes sense, implementation should be locked, so other changes do not break this,
alteaに対するxmlToObjectで配列型を配列として変換してくれない問題を暫定的に解消。
node-soap的に望ましい実装ではなさそうだが...。